package com.zyb.patient.activity;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

import com.zyb.patient.R;
import com.zyb.patient.util.AppUtils;

public class SettingAboutActivity extends BaseActivity implements OnClickListener{
	
	private TextView versionTv;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.setContentView(R.layout.activity_setting_about);
		((TextView) findViewById(R.id.head_layout_tv)).setText("住院宝介绍	");
		findViewById(R.id.head_layout_back).setOnClickListener(this);
		
		versionTv = (TextView) findViewById(R.id.about_tv1);
		versionTv.setText(String.format("版本号: v%s", AppUtils.getVerName("com.zyb.patient", mContext)));

		overridePendingTransition(R.anim.enter_righttoleft, R.anim.noanim);
	}
	@Override
	public void onClick(View view) {
		// TODO Auto-generated method stub
		if(view.getId() ==  R.id.head_layout_back){
			super.onBackPressed();
		}
	}
	
}
